<include file="Public:header" />

			<div id="content" class="container_16 clearfix">
				<div class="grid_4">
					<p>
						<label></label>
						<input type="button" value="Add New Video" onclick="javascript:document.location.href='__URL__/add'"/>
						
					</p>
				</div>
				<div class="grid_4">
					<p>
						<label></label>
						<input type="button" value="Category Manage" onclick="javascript:document.location.href='__APP__/videocat'"/>
						
					</p>
				</div>
			<!--
				<div class="grid_4">
					<p>
						<label>Username<small>Alpha-numeric values</small></label>
						<input type="text" />
					</p>
				</div>
			
				<div class="grid_5">
					<p>
						<label>Email Address</label>
						<input type="text" />
					</p>
				</div>
				<div class="grid_5">
					<p>
						<label>Department</label>
						<select>
							<option>Development</option>
							<option>Marketing</option>
							<option>Design</option>
							<option>IT</option>
						</select>
					</p>
				</div>
				<div class="grid_2">
					<p>
						<label>&nbsp;</label>
						<input type="submit" value="Search" />
					</p>
				</div>
				-->
				<div class="grid_16">
					<table>
						<thead>
							<tr>
								<th>Title</th>
								<th>Category</th>
								<th>Point</th>
								<th>View Counts</th>
								<th colspan="2" width="10%">Actions</th>
							</tr>
						</thead>
						<tfoot>
							<tr>
								<td colspan="5" class="pagination">
									{$page}
								</td>
							</tr>
						</tfoot>
						<tbody>
							<foreach name="videos" item="video">				
							<tr>
								<td>{$video.video_name}</td>
								<td>{$cats[$video['cat_id']]}</td>
								<td>{$video.point}</td>
								<td>{$video.view_counts}</td>
								<td><a href="{$video.editUrl}" class="edit">Edit</a></td>
								<td><a onclick="javascript:if(!confirm('Are you sure?!')){return false;}" href="{$video.deleteUrl}" class="delete">Delete</a></td>
							</tr>
							</foreach>
						</tbody>
					</table>
				</div>
			</div>

<include file="Public:footer" />
